<div class="row">
  <div class="col-sm-12">
    <div class="">
      <nav id="menu" class="navbar">
        <div class="navbar-header">
          <!--<span id="category" class="visible-xs">導航欄</span>-->
          <button type="button" class="btn btn-navbar navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"><i class="fa fa-bars"></i></button>
        </div>
        <div class="collapse navbar-collapse navbar-ex1-collapse">
          <ul class="nav navbar-nav">
            <li><a href="/"><i class="fa fa-home hidden-xs" aria-hidden="true"></i><span class="visible-xs">首页</span></a>
            </li>
            
            <!--需要遍历的内容-->
            @foreach($menus as $v)
              <li class="dropdown">
                <a href="{{route('goods.index',['category' => $v->id])}}" class="dropdown-toggle">{{$v->name}}</a>
                <span class="ochow-menu-item-toggle ochow-close visible-xs">
                <i class="fa fa-plus"></i>
                <i class="fa fa-minus"></i>
                </span>
                <span class="ochow-menu-item-arrow hidden-xs">
                <i class="fa fa-angle-down"></i>
                </span>

                <div class="dropdown-menu">
                  <div class="dropdown-inner">
                    <ul class="list-unstyled">
                      @foreach($v->subcates as $v)
                      <li><a href="{{route('goods.index', ['category' => $v->id])}}">{{$v->name}} ({{ $v->goods_count }})</a></li>
                     
                      @endforeach
                    </ul>
                  </div>
                </div>
                <!-- <a href="http://shop14.jccms.cn/index.php?route=product/category&amp;path=20" class="see-all">顯示全部 厨房用品</a> </div>-->
              </li>
            @endforeach

            <!-- <li class="dropdown">
              <a href="index.php-route=product-category&path=25.htm" class="dropdown-toggle">News</a>
              <span class="ochow-menu-item-toggle ochow-close visible-xs">
              <i class="fa fa-plus"></i>
              <i class="fa fa-minus"></i>
              </span>
              <span class="ochow-menu-item-arrow hidden-xs">
              <i class="fa fa-angle-down"></i>
              </span>
              <div class="dropdown-menu">
                <div class="dropdown-inner">
                  <ul class="list-unstyled">
                    <li><a href="index.php-route=product-category&path=25_32.htm">卧室 (2)</a></li>
                    <li><a href="index.php-route=product-category&path=25_28.htm">客廳 (7)</a></li>
                  </ul>
                </div>
              </div>
              
            </li> -->

            <!-- <li class="dropdown">
              <a href="index.php-route=product-category&path=20.htm" class="dropdown-toggle">Product</a>
              <span class="ochow-menu-item-toggle ochow-close visible-xs">
              <i class="fa fa-plus"></i>
              <i class="fa fa-minus"></i>
              </span>
              <span class="ochow-menu-item-arrow hidden-xs">
              <i class="fa fa-angle-down"></i>
              </span>
              <div class="dropdown-menu">
                <div class="dropdown-inner">
                  <ul class="list-unstyled">
                    <li><a href="index.php-route=product-category&path=20_26.htm">菜板 (2)</a></li>
                    <li><a href="index.php-route=product-category&path=20_27.htm">餐具 (3)</a></li>
                  </ul>
                </div>
              </div>
             
            </li> -->

            <!-- <li class="dropdown">
              <a href="index.php-route=product-category&path=34.htm" class="dropdown-toggle">Contact</a>
              <span class="ochow-menu-item-toggle ochow-close visible-xs">
              <i class="fa fa-plus"></i>
              <i class="fa fa-minus"></i>
              </span>
              <span class="ochow-menu-item-arrow hidden-xs">
              <i class="fa fa-angle-down"></i>
              </span>
              <div class="dropdown-menu">
                <div class="dropdown-inner">
                  <ul class="list-unstyled">
                    <li><a href="index.php-route=product-category&path=34_43.htm">test 11 (2)</a></li>
                    <li><a href="index.php-route=product-category&path=34_44.htm">test 12 (1)</a></li>
                    <li><a href="index.php-route=product-category&path=34_47.htm">test 15 (0)</a></li>
                    <li><a href="index.php-route=product-category&path=34_48.htm">test 16 (0)</a></li>
                    <li><a href="index.php-route=product-category&path=34_49.htm">test 17 (0)</a></li>
                  </ul>
                  <ul class="list-unstyled">
                    <li><a href="index.php-route=product-category&path=34_50.htm">test 18 (0)</a></li>
                    <li><a href="index.php-route=product-category&path=34_51.htm">test 19 (0)</a></li>
                    <li><a href="index.php-route=product-category&path=34_52.htm">test 20 (1)</a></li>
                    <li><a href="index.php-route=product-category&path=34_53.htm">test 21 (0)</a></li>
                    <li><a href="index.php-route=product-category&path=34_54.htm">test 22 (0)</a></li>
                  </ul>
                  <ul class="list-unstyled">
                    <li><a href="index.php-route=product-category&path=34_55.htm">test 23 (0)</a></li>
                    <li><a href="index.php-route=product-category&path=34_56.htm">test 24 (0)</a></li>
                    <li><a href="index.php-route=product-category&path=34_38.htm">test 4 (0)</a></li>
                    <li><a href="index.php-route=product-category&path=34_37.htm">test 5 (0)</a></li>
                    <li><a href="index.php-route=product-category&path=34_39.htm">test 6 (0)</a></li>
                  </ul>
                  <ul class="list-unstyled">
                    <li><a href="index.php-route=product-category&path=34_40.htm">test 7 (0)</a></li>
                    <li><a href="index.php-route=product-category&path=34_41.htm">test 8 (0)</a></li>
                    <li><a href="index.php-route=product-category&path=34_42.htm">test 9 (0)</a></li>
                  </ul>
                </div>
              </div>
              
            </li> -->
          </ul>
        </div>
      </nav>
    </div>
  </div>
</div>